<?php
if(!class_exists('Services_JSON'))
{
	exit('404');
}
#file manager
$root_path = $php_path . '../../../upload/';

$root_url = '/user_qj_20121124/upload/';
$root_url = str_replace(basename($_SERVER['SCRIPT_NAME']), '', $_SERVER['SCRIPT_NAME']).'upload/';
$root_url = str_replace('/editor/kindeditor4/php','',$root_url);



#upload_json.php
$save_path = $php_path . '../../../upload/';
$save_url = str_replace(basename($_SERVER['SCRIPT_NAME']), '', $_SERVER['SCRIPT_NAME']).'upload/';
$save_url = str_replace('/editor/kindeditor4/php','',$save_url);


function alert2($msg) {
	header('Content-type: text/html; charset=UTF-8');
	echo json_encode(array('error' => 1, 'message' => $msg));
	exit;
}
session_start();
if (!isset($_SESSION['user']['id']))
{
	alert2("你还没有登陆");
}


